package erp.education.server.db.implementation.erp.project;

 

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import erp.education.server.db.entites.setup.school.Schools;
import erp.education.server.db.implementation.common.BaseDAO;
import erp.education.server.db.interfaces.erp.project.ScreenDAOI;
@Component("screenDao")
public class ScreenDAO extends BaseDAO implements ScreenDAOI {

	@Override
	public Schools getScreen(Long screenId) {
		// TODO Auto-generated method stub
		Schools screen=null;
		Map params=new HashMap();
		params.put("screenId", screenId);
		
		screen=(Schools)getSingleResult("select screen from Screens screen where screen.screenId=:screenId ", params);
	 
		 
		 
		return screen;
	}
	@Override
	public List<Schools> getScreens() {
		// TODO Auto-generated method stub
		List<Schools> schools=null;
		Map params=new HashMap();
		schools=(List<Schools>) getResultList("select screen from Screens screen  ", params);
			return schools;
	}
}
